[NTG-context] Re: Pass string into text background graphic

2023-08-13 Thread Thangalin
Hi again, you could remove the \localcontrolled around the advance > I thought I tried that, but the counter incremented to 6, instead of 4. Using higher-level primitives seems more like the ConTeXt way. > why twice ? you only have to typeset the text once, right? > > >

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 7:19 PM, Thangalin wrote: Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would prevent its execution). This meant that

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
On 8/11/2023 9:57 PM, Thangalin wrote: Hi list, I'm attempting to make a stylized border around paragraphs that can span pages. The border runs along the side and the top. (Ideally the top border wouldn't repeat, but that's a minor issue.) The issue I'm having is that the title for the text

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
Hi list, I'm attempting to make a stylized border around paragraphs that can span pages. The border runs along the side and the top. (Ideally the top border wouldn't repeat, but that's a minor issue.) The issue I'm having is that the title for the text doesn't always appear. Instead, there's a

[NTG-context] Re: text width shadow background

2023-07-09 Thread Keith McKay
Well this is fun.  Getting the right patterns could make some interesting with fonts. Thanks for the tip Hans! Best Wishes Keith McKay % \startMPpage vardef tst (expr x, y, i, n) = definecolor [ name = "MyColor1", r = uniformdeviate(1), g = uniformdeviate(1), b =

[NTG-context] Re: text width shadow background

2023-07-09 Thread Hans Hagen via ntg-context
On 7/9/2023 5:56 PM, Henning Hraban Ramm wrote: Am 09.07.23 um 15:49 schrieb Keith McKay: Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. That’s funny. I replaced

[NTG-context] Re: text width shadow background

2023-07-09 Thread Henning Hraban Ramm
Am 09.07.23 um 15:49 schrieb Keith McKay: Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. That’s funny. I replaced the text by \TeX and published it here:

[NTG-context] Re: Fwd: Re: text width shadow background

2023-07-09 Thread Keith McKay
Hraban (and others), You got me thinking so I added this code to end of your code as a bit of fun. It's code from the luametafun manual to which I added two and a half lines. Best Wishes Keith %%% \startMPcode vardef tst (expr x, y, i, n) = definecolor [ name = "MyColor1", r =

[NTG-context] Fwd: Fwd: Re: Fwd: Re: text width shadow background

2023-07-09 Thread Keith McKay
Reduced size as requested. Moderator please delete original message which was greater than 100k Thanks Keith McKay Forwarded Message Subject:Re: [NTG-context] Re: Fwd: Re: text width shadow background Date: Sat, 8 Jul 2023 14:14:38 +0100 From: Keith McKay

[NTG-context] Re: Fwd: Re: text width shadow background

2023-07-08 Thread Henning Hraban Ramm
Am 08.07.23 um 15:14 schrieb Keith McKay: I played about with the number of shadow layers and added a wee bit randomness which gave a nice effect. See the code below and the attached png. Good idea, makes sense for big text – my captions are only 8pt, there 10 layers are already a lot, and

[NTG-context] Re: Fwd: Re: text width shadow background

2023-07-08 Thread Henning Hraban Ramm
Am 08.07.23 um 11:39 schrieb Hans Hagen via ntg-context: On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote: Please, can you explain why the result of lmt_outline is shifted to the right, if I use it in a macro? no time now but you can do this instead of the lmt_text:     draw lmt_outline [    

[NTG-context] Fwd: Re: text width shadow background

2023-07-08 Thread Hans Hagen via ntg-context
Forwarded Message Subject: Re: [NTG-context] Re: text width shadow background Date: Sat, 8 Jul 2023 11:39:32 +0200 From: Hans Hagen To: Henning Hraban Ramm On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote: Please, can you explain why the result of lmt_outline is shifted

[NTG-context] Re: text width shadow background

2023-07-08 Thread Henning Hraban Ramm
wunderschöne Bildunterschrift} \MyCaption{Ein ganz anderer Text} \stoptext """ BTW I recognized I need this not only for captions within images but also for the glow effect in the CCCamp23 style: https://events.ccc.de/camp/2023/infos/styleguide.html InDesign etc. crea

[NTG-context] Re: text width shadow background

2023-07-06 Thread Henning Hraban Ramm
Am 06.07.23 um 21:27 schrieb Henning Hraban Ramm: * I don’t understand why the white fill is not opaque. Posted too early. I do understand now (overlapping outlines). Tried to fix it by overwriting the text again in white, but now I don’t understand how to calculate the shifting: """

[NTG-context] text width shadow background

2023-07-06 Thread Henning Hraban Ramm
Hi, maybe you remember that I wanted this since 2017... I finally managed to get a fuzzy background behind text: """ \setupbodyfont[ss,24pt] \definecolor[tshade][t=.05,a=1,k=1] \starttexdefinition MyCaption #1 \startMPcode{doublefun} steps := 10 ; rulesize := BodyFontSize/steps/

Re: [NTG-context] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all, I found a minimal example. Am Fri, Oct 22, 2021 at 03:11:41PM +0200 schrieb juh via ntg-context: > in a minimal example > > \starttext > \externalfigure[test.svg][conversion=mp] > \stoptext > > renders fine. > > I my real world project white background i

[NTG-context] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all, in a minimal example \starttext \externalfigure[test.svg][conversion=mp] \stoptext renders fine. I my real world project white background is rendered black. Any hints where I can start to debug? juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Es

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread T. Kurt Bond
ds and turn the frame off and get every odd row in > > all my tables will have that color for the background. > > > > == Example > > > \definecolor[grayback][r=.8,g=.8,b=.8] > > \setupTABL

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread Wolfgang Schuster
T. Kurt Bond schrieb am 23.07.2021 um 17:55: With natural tables I can define a color, tell the table to have to use color backgrounds and turn the frame off and get every odd row in all my tables will have that color for the background. == Example

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread Henning Hraban Ramm
> Am 23.07.2021 um 17:55 schrieb T. Kurt Bond : > > With natural tables I can define a color, tell the table to have to > use color backgrounds and turn the frame off and get every odd row in > all my tables will have that color for the background. > > Can I get this sam

[NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread T . Kurt Bond
With natural tables I can define a color, tell the table to have to use color backgrounds and turn the frame off and get every odd row in all my tables will have that color for the background. == Example \definecolor[grayback][r

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-24 Thread Garulfo
Much more lean now thanks to your feedbacks. I prefered to "remove the shapes of the letter" rather than doubling the shading. Wikified https://wiki.contextgarden.net/Cover_Pages#.22Empty.22_letters \definecolor [ColorHighA] [h=c4a000] \definecolor [ColorHighB] [h=602217] \definecolor

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-24 Thread Taco Hoekwater
> On 24 Dec 2020, at 00:14, Garulfo wrote: > > Thanks Taco, > > I made some progress : > https://wiki.contextgarden.net/Talk:Cover_Pages > > I now have two additional questions ... ;-) > > - How can I deal with "space" characters (because current solution > requires to explicitly add the ~

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Hans Hagen
On 12/24/2020 12:46 AM, Otared Kavian wrote: Hi Garulfo, Thank you for sharing your nice example: it typesets correctly with mkiv, but it seems to me that with LMTX the text does not appear (at least on my installation of the latest LMTX). I admit that I had to trial and error this:

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Hans Hagen
(0,1) withshadecolors (red, blue) ; \stopuseMPgraphic \defineoverlay[MyShade][\useMPgraphic{MyShade}] \setupbackgrounds[page][background=MyShade] \startmakeup \definedfont[SerifBold*default @ 50pt] \setupinterlinespace \defineeffect[MyOutline][alternative=outer,rulethickness

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Otared Kavian
> %== > > \starttext > > %-- > > \startuseMPgraphic{MyBackgroundGraphic} > path pathbackground ; > numeric dim

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Garulfo
mA yscaled dimB ; fill pathbackground withshademethod "linear" withshadedirection(0,1) withshadecolors (red,blue); \stopuseMPgraphic %-- \definelayer[MyBackgroundLayer] \setlayer[MyBackgroundLayer]{\useMPgraphic{MyBackgroundGraphic}} \s

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-21 Thread Taco Hoekwater
> On 21 Dec 2020, at 16:09, Garulfo wrote: > > Hi, > > > * I try to "remove the paths of text" from a metapost pictures to let > the background visible. > > * Using > https://mailman.ntg.nl/pipermail/ntg-context/2018/thread.html#92725 > > *

[NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-21 Thread Garulfo
Hi, * I try to "remove the paths of text" from a metapost pictures to let the background visible. * Using https://mailman.ntg.nl/pipermail/ntg-context/2018/thread.html#92725 * I was able to get the following with one glyph (MVE code below) https://wiki.contextgarden.net/i

[NTG-context] MP background for text typeset by \typefile

2020-11-05 Thread context
Hello, is there a way to draw custom background (via MP) to a text typed by \typefile, which is so long so it spreads over more pages? - I'm asking because I know how to typeset some text via \typefile with: 1. this: \definetyping[Test] [before={\startbackground[background=color

Re: [NTG-context] background of \typing fills column

2020-06-01 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 01.06.2020 um 20:22: Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur

[NTG-context] background of \typing fills column

2020-06-01 Thread Henning Hraban Ramm
Hi, I finally wanted to attack CG journal 2019 again and stumble upon this error: If an article contains several \starttyping ... \stoptyping examples with a textbackground, it sometimes fills the whole column (pagecolumns). It doesn’t occur if the "typing" is at top or bottom of the column or

Re: [NTG-context] offset for background overlay

2020-04-13 Thread Wolfgang Schuster
mf schrieb am 13.04.2020 um 17:21: Thanks also for the explanation of backgroundoffset: it's an offset relative only to the background, and it moves in the opposite direction of the content offset of \framed. Looks like \framed[...,offset=VALUE,backgroundoffset=frame,...] is equivalent

Re: [NTG-context] offset for background overlay

2020-04-13 Thread mf
OverlayWidth yscaled 2.5 OverlayHeight ; draw p withcolor red ; setbounds currentpicture to p topenlarged 6mm ; \stopuseMPgraphic \defineoverlay[triangle][{\uniqueMPgraphic{cell:triangle}}] \starttext \bTABLE[frame=off] \bTR \bTD[nx=2,align=middle,background=triangle] \dontleavehmode a\crlf

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Wolfgang Schuster
[background=triangle], but it doesn't work. How about nested tables: \starttext \bTABLE[width=1cm,height=1cm] \bTR \bTD A \eTD \bTD B \eTD \bTD C \eTD \bTD E \eTD \eTR \bTR \bTD E \eTD \bTD[nc=2,nr=2,strut=no,align={middle,lohi}] {\bTABLE

Re: [NTG-context] offset for background overlay

2020-04-11 Thread mf
Thanks Hans and Wolfgang. @Wolfgang: your solution is clearer, but unfortunately it works only for this MWE. In the real case the triangle extends over 2 rows, but the table has more than 2 rows. I tried grouping the first two rows in a \bTABLEbody[background=triangle], but it doesn't work

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Wolfgang Schuster
; \stopuseMPgraphic \defineoverlay[triangle][{\uniqueMPgraphic{cell:triangle}}] \starttext \bTABLE[frame=off]    \bTR \bTD[nx=2,background=triangle,align=middle] \dontleavehmode a\crlf text \eTD    \eTR    \bTR[toffset=1mm] \bTD left \eTD \bTD right \eTD    \eTR \eTABLE \stoptext

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Hans Hagen
][{\uniqueMPgraphic{cell:triangle}}] \starttext \bTABLE[frame=off]   \bTR     \bTD[nx=2,background=triangle,align=middle] \dontleavehmode a\crlf text \eTD   \eTR   \bTR[toffset=1mm]     \bTD left \eTD     \bTD right \eTD   \eTR \eTABLE \stoptext here's a very ugly solution \startuseMPgraphic

[NTG-context] offset for background overlay

2020-04-11 Thread mf
}}] \starttext \bTABLE[frame=off] \bTR \bTD[nx=2,background=triangle,align=middle] \dontleavehmode a\crlf text \eTD \eTR \bTR[toffset=1mm] \bTD left \eTD \bTD right \eTD \eTR \eTABLE \stoptext The triangle is used as background of the 2-column wide cell of the first row. I want

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Pablo Rodriguez
On 4/8/20 11:32 AM, Fabrice Couvreur wrote: > [...] > \startframedtext[width=max,background=color,backgroundcolor=fondpaille] >      \starthanging[location=right] >          {\startMPcode >           draw unitsquare scaled 2cm ; >           \stopMPcode} >      \input tuft

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
Hi Pablo, Here a sample. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext \startframedtext[width=max,background=color,backgroundcolor=fondpaille] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Pablo Rodriguez
On 4/8/20 10:19 AM, Fabrice Couvreur wrote: > Hi, > Is there a more elegant way to have a white background for the table? Hi Fabrice, I think not including the table in the framed text is the easiest way to avoid the colored background. Or why do you need the table inside the framed text,

[NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
Hi, Is there a more elegant way to have a white background for the table ? In fact, my question is more general : if we insert an image, the background color envelops this image : how to solve this problem ? Thank you. Fabrice \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Jeong Dal
Dear Wolfgang, Now, I understand why the error messages “\texfont0 is undefined”, “ you used the started character from an undefined font family.” are appeared. Thank you for your clear explanation. Best regards, Dalyoung >> 3. removing \starttext, \stoptext, and functionstyle=“math”, it

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Wolfgang Schuster
Jeong Dal schrieb am 29.12.2019 um 14:33: Dear Hans, I run the following code which is in page 24,25 luametafun.pdf. 1. adding \starttext and \stoptext, it works fine. No overlapping. Also, functionstyle = “math” is working nicely. 2. removing \starttext and \stoptext, then functionstyle

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Jeong Dal
, cos = math.sin, math.cos", function = "cos(x)+sin(y)", %functionstyle = "math", background = "bitmap", foreground = "edge", linewidth = 1/2, cache = true, ]; \stopMPcode %\stop

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Hans Hagen
On 12/28/2019 9:27 PM, Jeong Dal wrote: Dear Hans, Thank you for the fix. Background color is OK now. A new problem in the caption: Since width of the figure is narrower than the width of the line "x = [0,12.555]; y = [-6,6];”, “y =“ is written over 12.555. Is there any option to sup

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Hans Hagen
On 12/28/2019 9:27 PM, Jeong Dal wrote: Dear Hans, Thank you for the fix. Background color is OK now. A new problem in the caption: Since width of the figure is narrower than the width of the line "x = [0,12.555]; y = [-6,6];”, “y =“ is written over 12.555. Is there any option to sup

Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-28 Thread Jeong Dal
Dear Hans, Thank you for the fix. Background color is OK now. A new problem in the caption: Since width of the figure is narrower than the width of the line "x = [0,12.555]; y = [-6,6];”, “y =“ is written over 12.555. Is there any option to suppress the caption x, y since there are nu

Re: [NTG-context] Captions with background

2019-08-04 Thread Henning Hraban Ramm
Am 2019-08-04 um 10:33 schrieb Hans Hagen : > > Thank you! That is much cleaner than my try, of course. I’ll try to transfer that into my environment. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD

Re: [NTG-context] Captions with background

2019-08-04 Thread Hans Hagen
On 8/3/2019 5:22 PM, Henning Hraban Ramm wrote: Hi, in my books I typeset captions onto full page images, therefore I need a background; in the attached example it’s just a white box, usually I use a MetaPost shadow (some of you helped me with that a few years ago, current code see https

[NTG-context] Captions with background

2019-08-03 Thread Henning Hraban Ramm
Hi, in my books I typeset captions onto full page images, therefore I need a background; in the attached example it’s just a white box, usually I use a MetaPost shadow (some of you helped me with that a few years ago, current code see https://wiki.contextgarden.net/Drop_shadows). Now

Re: [NTG-context] background problem with layers

2019-07-23 Thread Hans Hagen
On 7/23/2019 4:51 PM, Aditya Mahajan wrote: On Mon, 22 Jul 2019, Wolfgang Schuster wrote: Peter Rolf schrieb am 22.07.2019 um 13:32: Hi, I have a problem with a not printed color background when using layers. Small test file is attached. Below is a simpler example of your problem

Re: [NTG-context] background problem with layers

2019-07-23 Thread Aditya Mahajan
On Mon, 22 Jul 2019, Wolfgang Schuster wrote: Peter Rolf schrieb am 22.07.2019 um 13:32: Hi, I have a problem with a not printed color background when using layers. Small test file is attached. Below is a simpler example of your problem. The frame disappears when you repeat the layer which

Re: [NTG-context] background problem with layers

2019-07-23 Thread Peter Rolf
Am 22.07.2019 um 19:00 schrieb Wolfgang Schuster: > Peter Rolf schrieb am 22.07.2019 um 13:32: >> Hi, >> >> I have a problem with a not printed color background when using layers. >> Small test file is attached. > Below is a simpler example of your problem. > >

Re: [NTG-context] background problem with layers

2019-07-22 Thread Wolfgang Schuster
Peter Rolf schrieb am 22.07.2019 um 13:32: Hi, I have a problem with a not printed color background when using layers. Small test file is attached. Below is a simpler example of your problem. The frame disappears when you repeat the layer which change how the content if flushed

[NTG-context] background problem with layers

2019-07-22 Thread Peter Rolf
Hi, I have a problem with a not printed color background when using layers. Small test file is attached. ConTeXt version: 2019.07.16 18:23 Peter test.pdf Description: Adobe PDF document \defineframed[framedclass][ foregroundcolor=black, foregroundstyle=\bfa, backgroundcolor

Re: [NTG-context] background color, was: CMYK Color profile

2019-06-02 Thread Benjamin Koppe
When stupidity strikes, no one's safe. Turns out \setupbackgrounds has an option called backgroundoffset, and this is the solution. The not colorized part was the bleed part of the document, so the background command would be: \setupbackgrounds [paper] [ background=color

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Benjamin Koppe
! \showframe \setupbackgrounds[paper][background=color,backgroundcolor=blue] \starttext \starttitle[title={First page}] \input lorem \stoptitle \starttitle[title={Second page}] \input lorem \stoptitle \starttitle[title={Third page}] \input lorem \stoptitle \starttitle[title

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Wolfgang Schuster
Benjamin Koppe schrieb am 31.05.2019 um 21:23: Hi Jan, yes, I've read these texts once and they played a role in thinking about getting into ConTEXt. Thank you for your answer, now I have something to investigate. Another follow up question on background colors: I try to setup

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Benjamin Koppe
Hi Jan, yes, I've read these texts once and they played a role in thinking about getting into ConTEXt. Thank you for your answer, now I have something to investigate. Another follow up question on background colors: I try to setup the background color by \setupbackgrounds[page

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
Hans Hagen schrieb am 28.04.2019 um 18:42: On 4/28/2019 5:56 PM, Aditya Mahajan wrote: On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},   

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Hans Hagen
On 4/28/2019 5:56 PM, Aditya Mahajan wrote: On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},   

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},    \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Wolfgang Schuster
, before=\startEXAMPLE, after=\stopEXAMPLE] \starttext \starttyping   A = B + C \stoptyping \stoptext gives the attached output where the background is repeated twice. The bug is present with both mkiv and ltmx. Aditya

[NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
\stoptyping \stoptext gives the attached output where the background is repeated twice. The bug is present with both mkiv and ltmx. Aditya test.pdf Description: Adobe PDF document ___ If your question is of interest

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
> In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metapost > code to draw the

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
> > > examples). > > > I suppose Hans Hagen made use of metafun to do it but I encounter some > > > problems with 'textbackgrounds'. > > > > > > In this minimal example, the frame doesn't appear (or if i set > > > [frame=on,leftframe=off] al

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Alan Braslau
kgrounds'. > > > > In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metap

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Aditya Mahajan
he default metapost code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) doesn't handle individual frames. So, you have to write your own metapost code to draw the side bar. Another option for simple backgrounds is to use `\definebackground` instead of `definetextbackgrou

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
[before={\startbiblio}, after={\stopbiblio}] % Arri�re-plan biblio \definetextbackground[biblio] [location=paragraph, background=color, backgroundcolor=green, %backgroundoffset=2em, leftoffset=1em, rightoffset=1em, topoffset=1.5em, bottomoffset=1em, frame=off, le

Re: [NTG-context] Background color with \showgrid and columns

2019-02-08 Thread Marcus Vinicius Mesquita
t; \setuplayout[grid=yes] > > \showgrid > > \setupcolumns[n=2] > > > > \starttext > > > > \startcolumns > > \input knuth > > \column > > \input knuth > > \stopcolumns > > > > \stoptext > > > > in t

Re: [NTG-context] Background color with \showgrid and columns

2019-02-08 Thread Wolfgang Schuster
Marcus Vinicius Mesquita schrieb am 08.02.19 um 17:47: Dear list, When processing the attached mwe: \setuplayout[grid=yes] \showgrid \setupcolumns[n=2] \starttext \startcolumns \input knuth \column \input knuth \stopcolumns \stoptext in the final result there is a background color. How do

[NTG-context] Background color with \showgrid and columns

2019-02-08 Thread Marcus Vinicius Mesquita
Dear list, When processing the attached mwe: \setuplayout[grid=yes] \showgrid \setupcolumns[n=2] \starttext \startcolumns \input knuth \column \input knuth \stopcolumns \stoptext in the final result there is a background color. How do I get rid of it? Marcus Vinicius mwe.tex Description

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
lorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament >[FrameTitle] >[preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, >] >

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-04 Thread Procházka Lukáš Ing .
Hello, done here (on the bottom of the page): http://wiki.contextgarden.net/Command/setupheader But the result doesn't show the goal of the example: - header is not shown at all, including its blue "underline", - user cannot check the emptiness of the second page. Maybe a switch to

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-01 Thread Pablo Rodriguez
On 09/01/2017 09:31 AM, Procházka Lukáš Ing. wrote: > Hello Pablo, > > you inspired me: > > > \setuplayout[header=5mm,headerdistance=5mm,] > \setupheader >[text] >[before={\startframed[frame=off,bottomframe=on,framecolor=blue,]}, > after={\stopframed}, >] >

Re: [NTG-context] Empty page to suppress header (background) frame

2017-09-01 Thread Procházka Lukáš Ing .
Hello Pablo, you inspired me: \setuplayout[header=5mm,headerdistance=5mm,] \setupheader [text] [before={\startframed[frame=off,bottomframe=on,framecolor=blue,]}, after={\stopframed}, ] \setupheadertexts[left][right] \starttext Page 1 \page[empty,blank] Page 2 \stoptext

Re: [NTG-context] Empty page to suppress header (background) frame

2017-08-31 Thread Procházka Lukáš Ing .
Hello Pablo, thanks for the answer - yes, it works - for the situation header underline has been defined via \blackrule and not background. I found a proposal for this situation spoken here before: - to provide [noheaderandfooterbackground] (or similar) option for \page which would

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
r[MyColorA][r=0.8784, g=0.8784, b=0.8784] > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] > > \defineornament > [FrameTitle] > [preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > fo

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] \defineornament [FrameTitle] [preset=lefttop] [ frame=off, foregroundstyle=\bfx, foregroundcolor=white, b

Re: [NTG-context] Empty page to suppress header (background) frame

2017-08-30 Thread Pablo Rodriguez
On 08/30/2017 05:19 PM, Procházka Lukáš Ing. wrote: > [...] > How to: > > - define header to be framed normally and > - to be "frame-free" when \page[empty] (and/or maybe \page[blank]) is called? Hi Lukáš, from your sample, I wonder whether you need a complete frame or only a rule in the

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Aditya, I tried : \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=00

[NTG-context] Empty page to suppress header (background) frame

2017-08-30 Thread Procházka Lukáš Ing .
Hello, suppose the following code: \setuplayout[header=5mm,headerdistance=5mm,] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts[left][right] \starttext Page 1 \page[empty,blank] Page 2 \stoptext Page 2 in this sample is empty - no text and no header/footer -

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
apost). >> >> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] >> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] >> >> \defineornament >> [FrameTitle] >> [preset=lefttop] >> [ >> frame=off, >> foregroundsty

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
e metapost). >> >> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] >> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00] >> >> \defineornament >> [FrameTitle] >> [preset=lefttop] >> [ >> frame=off, >> foregroundsty

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
[preset=lefttop] > [ > frame=off, > foregroundstyle=\bfx, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > \defineframedtext > [FramedText] > [ > offset=0.6em, > toffset=\lineheight, >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Aditya Mahajan
=\bfx, foregroundcolor=white, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
eMPgraphic \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \defineframedtext [MyFrame] [frame=off, foregroundstyle={\switchtobodyfont[10pt]}, background=MyFrame, align={verytolerant}, height=fit] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}]

Re: [NTG-context] texture as background?

2017-07-30 Thread Henning Hraban Ramm
Am 2017-07-29 um 01:01 schrieb Aditya Mahajan <adit...@umich.edu>: > On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: > >> Ahoi, >> >> is there are way to use a texture (i.e. a repeated pixel image) as a >> background of a frame? > > Use \backgroundim

Re: [NTG-context] texture as background?

2017-07-28 Thread Aditya Mahajan
On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: Ahoi, is there are way to use a texture (i.e. a repeated pixel image) as a background of a frame? Use \backgroundimage See https://tex.stackexchange.com/a/69138/323 Aditya

[NTG-context] texture as background?

2017-07-28 Thread Henning Hraban Ramm
Ahoi, is there are way to use a texture (i.e. a repeated pixel image) as a background of a frame? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ If your question

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
m] > \definevimtyping[python][syntax=python, escape=on] > > \starttext > \startpython[highlight=1] > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > \stoppython > \stoptext > ``` By default, the highlighting is done using the bars mechanism. It works for simple cases but f

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
s mechanism. It works  for simple cases but fails with math mode (the spaces are not covered).  One option is to highlight using the textbackground mechanism: \definetextbackground[texthighlight]  [    background=color,    backgroundcolor=gray,    frame=off,  ] \define[1]\texthighlig

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Henri Menke
rtpython[highlight=1] > > # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > > \stoppython > > \stoptext > > ``` > By default, the highlighting is done using the bars mechanism. It works  > for simple cases but fails with math mode (the spaces are not covered).  &

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Gerion Entrup
gt; # Returns \m{\sum_{i=1}^{n}i \in F \int_i f} > > \stoppython > > \stoptext > > ``` > > By default, the highlighting is done using the bars mechanism. It works > for simple cases but fails with math mode (the spaces are not covered). > One option is to highlight using the textbackgr

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-19 Thread Aditya Mahajan
using the textbackground mechanism: \definetextbackground[texthighlight] [ background=color, backgroundcolor=gray, frame=off, ] \define[1]\texthighlight{\starttexthighlight#1\stoptexthighlight} \usemodule[vim] \definevimtyping[python][syntax=python, escape

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-18 Thread Gerion Entrup
\definevimtyping[python][syntax=python, escape=on] > > > > \starttext > > \startpython > > # Returns \m{\sum_{i=1}^{n}i} > > def sum_upto(\m{n \in \mathbb{N}}) > >r = range(1, \m{n} + 1) > >return sum(r) > > \stoppython > > \stopt

Re: [NTG-context] t-vim module: math in "normal" code and background color

2017-07-17 Thread Aditya Mahajan
}^{n}i} def sum_upto(\m{n \in \mathbb{N}}) r = range(1, \m{n} + 1) return sum(r) \stoppython \stoptext ``` Another option will be to use the algorithmic module: https://bitbucket.org/wolfs/algorithmic/src/ 2. It would be cool, if I can define some background color for the code. Unfortunately

  1   2   3   4   5   6   >